package cn.ecut.dao;

import cn.ecut.pojo.Manager;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Component;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Mapper
@Component("managerDao")
public interface ManagerDao extends BaseMapper<Manager> {


    @Override
    @Select("select * from t_manager where id=#{id}")
    Manager selectById(Serializable id);

    @Select("select username from t_manager where username=#{username}")
    String selectUsername(String username);

    @Select("select password from t_manager where username=#{username}")
    String selectPassword(String username);
}
